package com.mouse.magent.web.controller;


import com.mouse.magent.common.entity.common.Result;
import com.mouse.magent.web.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 账号 前端控制器
 * </p>
 *
 * @author mouse
 * @since 2020-01-20
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserMapper userMapper;

    @GetMapping("/test")
    public Result test() {
        return Result.success(userMapper.selectList(null));
    }
}
